import type { ResponseData } from "@/type/index";

// 获取登录验证码
export interface Data {
    imageCode: string;
    id: string;
}
export interface AuthCode extends ResponseData {
    data: {
        imageCode: string;
        id: string;
    }
}


// 获取公钥
export interface publicKey extends ResponseData{
	data: string;
}

// 登录
export interface loginRequest {
	username: string;
	pwd: string;
	verifyCode: string;
	verifyCodeId: string;
}
export interface LoginRootObject extends ResponseData{
	data?: any;
}

////////////////////////////////////////////////////////
export interface AccountParams {


    page?: number,
    pageSize?: number
}


export interface Auth {
    username: string,
    pwd: string,
    verifyCode: string,
    verifyCodeId: string
}

export interface Account {
    id?: number,
    companyId?: number,
    level?: number,
    staffId?: number,
    name?: string,
    pwd?: string,
    newPwd?: string,
    type?: number,
    enable?: number,
    photo?: string,
    mobile?: string,
    username?: string,
    roleIds?: string,
    outLogs?: string,
    verifyCode?: string,
    verifyCodeId?: string,
    openId?: string
}

export interface LoginLog {
    id?: number,
    accountId?: number,
    addTime?: string,
    ip?: string,
    ipAddress?: string
}

export interface LoginModel{
    model:Account,
    loginLog:LoginLog,
    token:string
}

//图形验证码
export interface Captcha{
    imageCode:string,
    id:string
}